package net.learn.system.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import net.learn.system.entity.SysPaperEntity;
import net.learn.system.query.SysPaperQuery;
import net.learn.system.vo.SysPaperVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *
 * @author 李立志
 * @since 2022-01-11
 */
@Mapper
public interface SysPaperDao extends BaseMapper<SysPaperEntity> {

    IPage<SysPaperEntity> qryPaperListPage(IPage<SysPaperEntity> page, @Param("SysPaperQuery") SysPaperQuery qry);

    List<SysPaperVO> qryPaperQuestionList(@Param("SysPaperQuery") SysPaperQuery qry);

    List<SysPaperVO> qryPaperQuestionTypeList(@Param("SysPaperQuery") SysPaperQuery qry);

    List<SysPaperVO> qryMyScoreList(@Param("SysPaperQuery") SysPaperQuery qry);

    IPage<SysPaperEntity> qryPaperListArray(IPage<SysPaperEntity> page, @Param("SysPaperQuery") SysPaperQuery qry);

}
